package com.yuandian.api.management.feign;

import com.yuandian.api.management.entity.CommonInterface;
import com.yuandian.bpm.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 说明：远程调用通用接口配置服务
 * @Author zfsn
 * @Date 2023/2/21 9:35
 */
@FeignClient(contextId = "remoteCommonInterfaceService", value = "bpm-management")
public interface RemoteCommonInterfaceService {

	/**
	 * 通过配置编码获取通用接口配置
	 * @param code 配置编码
	 * @return 通用返回对象
	 */
	@GetMapping("/common/interface/query/{code}")
	R<CommonInterface> queryByCode(@PathVariable("code") String code);
}
